parser grammar EdjeParser;

options {

   language=Java;  // Default

   // Tell ANTLR to make the generated lexer class extend the
   // the named class, which is where any supporting code and 
   // variables will be placed.
   //
   superClass = AbstractEdjeParser;
   tokenVocab = EdjeLexer;
}

@header {
package edje.core;
}

line returns [List<String> result]
@init {
	result = new ArrayList<String>();
}
	: field NEWLINE;

field returns (String parsedItem)
    : f = FIELD { $parsedItem = $f.text; }
    | // nothing
    ;
